//
//  HDMonthModle.h
//  MirkoLibTest
//
//  Created by Mirko on 2017/1/20.
//  Copyright © 2017年 Mirko. All rights reserved.
//

#import <Foundation/Foundation.h>

//数据事例  starttime：2017-1

@interface HDMonthModle : NSObject

//解析后的年“2017”
@property (nonatomic, strong) NSString *year;
//解析后的月“1”
@property (nonatomic, strong) NSString *month;

@property (nonatomic, assign) NSInteger nYear;
@property (nonatomic, assign) NSInteger nMonth;

//结束月份
@property (nonatomic, strong) NSString *eMonth;
@property (nonatomic, assign) NSInteger nEMonth;

//所在的IndexPath
@property (nonatomic, assign) NSIndexPath *idxPath;

//转换成数据格式 2017-1
@property (nonatomic, strong) NSString *dataPara;


//String 类型参数解析成model
+(instancetype) modleWithFullDate:(NSString *) dataStr;

//Double 类型参数解析model
+(instancetype) modleWithTimeInterval:(NSNumber *) dataStr;

//根据年月创建对象
+(instancetype) modleWithYear:(NSString *) year month:(NSString *) month;

-(BOOL) isInvalidTime;
-(BOOL) sameAsTime:(HDMonthModle *) time;

@end
